//
//  XVTabBar.swift
//  Hunter
//
//  Created by oher on 15/6/24.
//  Copyright © 2015年 刘🐑. All rights reserved.
//

import UIKit

class XVTabBar: UITabBar {

    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */
    
    override func layoutSubviews() {
        print("hell")
        super.layoutSubviews()
        for obj in subviews{
            if obj is UIControl && !(obj is UIButton){
                obj.frame = CGRectOffset(obj.frame, 0, 4)
            }
        }
    }
    

}
